<html>

<head>
  <meta charset="utf-8" name="referrer" content="strict-origin-when-cross-origin">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>加载高德地图</title>
  <script src="../../../assets/ol/v5.3.0/ol.js"></script>
  <script src="../../../assets/script/jquery-2.1.1.min.js"></script>
  <link rel="stylesheet" href="../../../assets/ol/v5.3.0/ol.css">
  <link rel="stylesheet" href="../../../assets/css/index.css">
  <style>
    #map {
      width: 80%;
      height: 800px;
    }
  </style>
</head>

<body>
  <div id="map"></div>
  <script src="../../../assets/script/v5.3.0-common.js"></script>
</body>
<script>

  const gaodeLayer = new ol.layer.Tile({
    source: new ol.source.XYZ({
      title: '高德',
      url: "http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}"
    })
  });
  map.addLayer(gaodeLayer) 
</script>

</html>